home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / CIncludes / Start.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-08-12  |  3.4 KB  |  141 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        Start.h
  3.  
  4.      Contains:    Start Manager Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.0.1
  8.  
  9.      Copyright:    © 1987-1993, 1996-1997 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. */
  18. #ifndef __START__
  19. #define __START__
  20.  
  21. #ifndef __TYPES__
  22. #include <Types.h>
  23. #endif
  24.  
  25.  
  26.  
  27. #if PRAGMA_ONCE
  28. #pragma once
  29. #endif
  30.  
  31. #ifdef __cplusplus
  32. extern "C" {
  33. #endif
  34.  
  35. #if PRAGMA_IMPORT
  36. #pragma import on
  37. #endif
  38.  
  39. #if PRAGMA_STRUCT_ALIGN
  40.     #pragma options align=mac68k
  41. #elif PRAGMA_STRUCT_PACKPUSH
  42.     #pragma pack(push, 2)
  43. #elif PRAGMA_STRUCT_PACK
  44.     #pragma pack(2)
  45. #endif
  46.  
  47.  
  48. union DefStartRec {
  49.     struct {
  50.         SignedByte                         sdExtDevID;
  51.         SignedByte                         sdPartition;
  52.         SignedByte                         sdSlotNum;
  53.         SignedByte                         sdSRsrcID;
  54.     }                                 slotDev;
  55.     struct {
  56.         SignedByte                         sdReserved1;
  57.         SignedByte                         sdReserved2;
  58.         short                             sdRefNum;
  59.     }                                 scsiDev;
  60. };
  61. typedef union DefStartRec DefStartRec;
  62.  
  63. typedef DefStartRec *                    DefStartPtr;
  64. struct DefVideoRec {
  65.     SignedByte                         sdSlot;
  66.     SignedByte                         sdsResource;
  67. };
  68. typedef struct DefVideoRec DefVideoRec;
  69.  
  70. typedef DefVideoRec *                    DefVideoPtr;
  71. struct DefOSRec {
  72.     SignedByte                         sdReserved;
  73.     SignedByte                         sdOSType;
  74. };
  75. typedef struct DefOSRec DefOSRec;
  76.  
  77. typedef DefOSRec *                        DefOSPtr;
  78.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  79.                                                                                             #pragma parameter GetDefaultStartup(__A0)
  80.                                                                                             #endif
  81. EXTERN_API( void )
  82. GetDefaultStartup                (DefStartPtr             paramBlock)                            ONEWORDINLINE(0xA07D);
  83.  
  84.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  85.                                                                                             #pragma parameter SetDefaultStartup(__A0)
  86.                                                                                             #endif
  87. EXTERN_API( void )
  88. SetDefaultStartup                (DefStartPtr             paramBlock)                            ONEWORDINLINE(0xA07E);
  89.  
  90.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  91.                                                                                             #pragma parameter GetVideoDefault(__A0)
  92.                                                                                             #endif
  93. EXTERN_API( void )
  94. GetVideoDefault                    (DefVideoPtr             paramBlock)                            ONEWORDINLINE(0xA080);
  95.  
  96.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  97.                                                                                             #pragma parameter SetVideoDefault(__A0)
  98.                                                                                             #endif
  99. EXTERN_API( void )
  100. SetVideoDefault                    (DefVideoPtr             paramBlock)                            ONEWORDINLINE(0xA081);
  101.  
  102.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  103.                                                                                             #pragma parameter GetOSDefault(__A0)
  104.                                                                                             #endif
  105. EXTERN_API( void )
  106. GetOSDefault                    (DefOSPtr                 paramBlock)                            ONEWORDINLINE(0xA084);
  107.  
  108.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  109.                                                                                             #pragma parameter SetOSDefault(__A0)
  110.                                                                                             #endif
  111. EXTERN_API( void )
  112. SetOSDefault                    (DefOSPtr                 paramBlock)                            ONEWORDINLINE(0xA083);
  113.  
  114. EXTERN_API( void )
  115. SetTimeout                        (short                     count);
  116.  
  117. EXTERN_API( void )
  118. GetTimeout                        (short *                count);
  119.  
  120.  
  121. #if PRAGMA_STRUCT_ALIGN
  122.     #pragma options align=reset
  123. #elif PRAGMA_STRUCT_PACKPUSH
  124.     #pragma pack(pop)
  125. #elif PRAGMA_STRUCT_PACK
  126.     #pragma pack()
  127. #endif
  128.  
  129. #ifdef PRAGMA_IMPORT_OFF
  130. #pragma import off
  131. #elif PRAGMA_IMPORT
  132. #pragma import reset
  133. #endif
  134.  
  135. #ifdef __cplusplus
  136. }
  137. #endif
  138.  
  139. #endif /* __START__ */
  140.  
  141.